<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:include="head"></div>
 <div>

       <table>
           <tr>
               <td>用户名:</td>
               <td>
                   <input type="text" id="name" name="name"/></td>
           </tr>
           <tr>
               <td>密码:</td>
               <td><input type="password" id="password" name="password"/></td>
           </tr>
       </table>
     <input type="button" id="register" value="注册"/>

 </div>
<div th:include="footer :: footer"></div><!--第一个footer是文件名；第二个是文件内部的div属性名 -->
</body>
</html>